return maxVolume / this._control.get_vol_max_norm();
}
+
+ showOSD() {
+ const gicon = new Gio.ThemedIcon({name: this.getIcon()});
+ const level = this.getLevel();
+ const maxLevel = this.getMaxLevel();
+ Main.osdWindowManager.show(-1, gicon, null, level, maxLevel);
+ }
});
const OutputStreamSlider = GObject.registerClass(
if (result === Clutter.EVENT_PROPAGATE || item.mapped)
return result;
- const gicon = new Gio.ThemedIcon({name: item.getIcon()});
- const level = item.getLevel();
- const maxLevel = item.getMaxLevel();
- Main.osdWindowManager.show(-1, gicon, null, level, maxLevel);
+ item.showOSD();
return result;
}
});